import React from 'react';
import { useStore } from 'react-redux';
import { location, urls } from '@/shared/services/location';
import { Redirect } from '@/shared/components/RouterLink';
import BasicLayout from './BasicLayout';


const SecurityLayout = () => {
  const store = useStore();
  location.initialize(store);
  const tmp = true;

  if (tmp) {
    return <Redirect to={urls.LOGIN} />;
  }

  return (<BasicLayout />);
};

export default SecurityLayout;
